package edu.cuit.zhuyimeng.flight.api.controller;

import edu.cuit.zhuyimeng.framework.common.result.CommonResult;
import jakarta.validation.constraints.NotNull;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "flight-service",contextId = "flight-manager",path = "admin")
public interface FlightManagerApiController {

    /**
     * 刷新航班缓存
     */
    @PostMapping("/cache")
     CommonResult<Void> refreshFlightCache(@RequestParam("id") @NotNull Long id);

}
